# @File   : black.py
# @Time   : 2020/09/12 21:43:55
# @Author : hyh
# @work   : 项目初始化类
# here put the import lib


class Black(object):
    def __init__(self, app=None):
        self.app = app
        if app is not None:
            self.init_app(app)

    def init_app(self, app):
        # 初始化数据库
        from .ext import db
        db.init_app(app)
